package com.ruoyi.supermarket.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.supermarket.mapper.XqpurchaseMapper;
import com.ruoyi.supermarket.domain.Xqpurchase;
import com.ruoyi.supermarket.service.IXqpurchaseService;

/**
 * 采购采退详情表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-22
 */
@Service
public class XqpurchaseServiceImpl implements IXqpurchaseService 
{
    @Autowired
    private XqpurchaseMapper xqpurchaseMapper;

    /**
     * 查询采购采退详情表
     * 
     * @param pId 采购采退详情表主键
     * @return 采购采退详情表
     */
    @Override
    public Xqpurchase selectXqpurchaseByPId(Long pId)
    {
        return xqpurchaseMapper.selectXqpurchaseByPId(pId);
    }

    /**
     * 查询采购采退详情表列表
     * 
     * @param xqpurchase 采购采退详情表
     * @return 采购采退详情表
     */
    @Override
    public List<Xqpurchase> selectXqpurchaseList(Xqpurchase xqpurchase)
    {
        return xqpurchaseMapper.selectXqpurchaseList(xqpurchase);
    }

    /**
     * 新增采购采退详情表
     * 
     * @param xqpurchase 采购采退详情表
     * @return 结果
     */
    @Override
    public int insertXqpurchase(Xqpurchase xqpurchase)
    {
        return xqpurchaseMapper.insertXqpurchase(xqpurchase);
    }

    /**
     * 修改采购采退详情表
     * 
     * @param xqpurchase 采购采退详情表
     * @return 结果
     */
    @Override
    public int updateXqpurchase(Xqpurchase xqpurchase)
    {
        return xqpurchaseMapper.updateXqpurchase(xqpurchase);
    }

    /**
     * 批量删除采购采退详情表
     * 
     * @param pIds 需要删除的采购采退详情表主键
     * @return 结果
     */
    @Override
    public int deleteXqpurchaseByPIds(Long[] pIds)
    {
        return xqpurchaseMapper.deleteXqpurchaseByPIds(pIds);
    }

    /**
     * 删除采购采退详情表信息
     * 
     * @param pId 采购采退详情表主键
     * @return 结果
     */
    @Override
    public int deleteXqpurchaseByPId(Long pId)
    {
        return xqpurchaseMapper.deleteXqpurchaseByPId(pId);
    }
}
